<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>c1</h1>
    <script>
      document.cookie = `name=jack;expires=${new Date(
        +new Date() + 5000
      ).toUTCString()}`;
      document.cookie = `age=20;expires=${new Date(
        "2024-12-21"
      ).toUTCString()}`;
      document.cookie = `gender=boy;expires=${new Date(
        "2022-12-21"
      ).toUTCString()}`;
      document.cookie = `gender=boy`;
      // name=jack; age=20; gender=boy
      console.log(document.cookie);
    </script>
  </body>
</html>
